﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TinyCinema.UI.Pages.AdminPanel
{
    /// <summary>
    /// Interaction logic for Feature.xaml
    /// </summary>
    public partial class Feature : Page
    {
        public Feature()
        {
            InitializeComponent();
            MainPage.featureDataContext = DataContext as Bussiness.AdminPanel.Feature;
        }

        private void DataGrid_CurrentCellChanged(object sender, EventArgs e)
        {
            (DataContext as Bussiness.AdminPanel.Feature).SaveCommand.Execute(((sender as DataGrid).SelectedItem));
        }
    }
}
